package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkOutsideResidenceMapper;
import com.ruoyi.chengkao.domain.CkOutsideResidence;
import com.ruoyi.chengkao.service.ICkOutsideResidenceService;

/**
 * 区外考生居住地信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
@Service
public class CkOutsideResidenceServiceImpl implements ICkOutsideResidenceService 
{
    @Autowired
    private CkOutsideResidenceMapper ckOutsideResidenceMapper;

    /**
     * 查询区外考生居住地信息
     * 
     * @param id 区外考生居住地信息主键
     * @return 区外考生居住地信息
     */
    @Override
    public CkOutsideResidence selectCkOutsideResidenceById(Long id)
    {
        return ckOutsideResidenceMapper.selectCkOutsideResidenceById(id);
    }

    @Override
    public List<CkOutsideResidence> selectCkOutsideResidenceAll()
    {
        return ckOutsideResidenceMapper.selectCkOutsideResidenceAll();
    }

    /**
     * 查询区外考生居住地信息列表
     * 
     * @param ckOutsideResidence 区外考生居住地信息
     * @return 区外考生居住地信息
     */
    @Override
    public List<CkOutsideResidence> selectCkOutsideResidenceList(CkOutsideResidence ckOutsideResidence)
    {
        return ckOutsideResidenceMapper.selectCkOutsideResidenceList(ckOutsideResidence);
    }

    /**
     * 新增区外考生居住地信息
     * 
     * @param ckOutsideResidence 区外考生居住地信息
     * @return 结果
     */
    @Override
    public int insertCkOutsideResidence(CkOutsideResidence ckOutsideResidence)
    {
        return ckOutsideResidenceMapper.insertCkOutsideResidence(ckOutsideResidence);
    }

    /**
     * 修改区外考生居住地信息
     * 
     * @param ckOutsideResidence 区外考生居住地信息
     * @return 结果
     */
    @Override
    public int updateCkOutsideResidence(CkOutsideResidence ckOutsideResidence)
    {
        return ckOutsideResidenceMapper.updateCkOutsideResidence(ckOutsideResidence);
    }

    /**
     * 批量删除区外考生居住地信息
     * 
     * @param ids 需要删除的区外考生居住地信息主键
     * @return 结果
     */
    @Override
    public int deleteCkOutsideResidenceByIds(Long[] ids)
    {
        return ckOutsideResidenceMapper.deleteCkOutsideResidenceByIds(ids);
    }

    /**
     * 删除区外考生居住地信息信息
     * 
     * @param id 区外考生居住地信息主键
     * @return 结果
     */
    @Override
    public int deleteCkOutsideResidenceById(Long id)
    {
        return ckOutsideResidenceMapper.deleteCkOutsideResidenceById(id);
    }
}
